<!DOCTYPE html>
<!-- 入thymeleaf依赖 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf</title>
</head>
<body>
    <h1>Hello Thymeleaf</h1>
<hr>
    <table>
        <tr>
            <th>ID</th>
            <th>学生姓名</th>
            <th>年龄</th>
        </tr>
        <tr th:each="student:${students }">
            <td th:text="${student.id }"></td>
            <td th:text="${student.name }"></td>
            <td th:text="${student.age }"></td>
        </tr>
    </table>

</body>
</html>